package net.heri.xmppchat.persistence;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(daoClass = ChatSessionDao.class, tableName = "xmpp_chat_sessions")
public class ChatSession {

	@DatabaseField(columnName = "id", generatedId = true)
	private Long sessionId;
	
	@DatabaseField(columnName = "group_chat", canBeNull = false)
	private boolean groupChat;
	
	@DatabaseField(columnName = "remote_user", canBeNull = false)
	private String remoteUser;
	
	public ChatSession() {
		// TODO Auto-generated constructor stub
	}
	
	public Long getSessionId() {
		return sessionId;
	}

	public void setSessionId(Long sessionId) {
		this.sessionId = sessionId;
	}

	public boolean isGroupChat() {
		return groupChat;
	}

	public void setGroupChat(boolean groupChat) {
		this.groupChat = groupChat;
	}

	public String getRemoteUser() {
		return remoteUser;
	}

	public void setRemoteUser(String remoteUser) {
		this.remoteUser = remoteUser;
	}	
}
